package com.example.mapper;

import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper {
    /**
     * 根据用户名和密码查询用户
     */
    @Select("select id, username from user where username = #{username} and password = #{password}")
    User findByUsernameAndPassword(String username, String password);


}
